package Scuttlebutt;

import java.awt.event.*;
import javax.swing.*;

public class EventSaveProject extends JMenuItem implements ActionListener 
{
	Scuttlebutt parent = null;
	
	public EventSaveProject(Scuttlebutt parent)
	{
		this.parent = parent;
		addActionListener(this);
	}
	
	public EventSaveProject(String text, Scuttlebutt parent)
	{
		super(text);
		this.parent = parent;
		addActionListener(this);
	}

	public void actionPerformed(ActionEvent a0)
	{
		Project.Save(parent.getProject());
	}
}

